<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function outter() {
        var name = '小强'
        function inner() {
            console.log(name)
        }
    }
</script>
</body>
</html>